<?php TPL::output('admin/admin_header.tpl.htm'); ?>
<body >
<div id="body-wrapper">
<div id="main-content">
	<div class="clear"></div>
	<div class="content-box">
		<div class="content-box-header">
			<h3><?php echo $this->crumb['last']['name']; ?> - <?php echo $this->group['group_name']; ?></h3>
			<ul class="content-box-tabs">
			</ul>
			<div class="clear"></div>
		</div>
		<div class="content-box-content">
			<div id="notification_box" class="notification success png_bg" style="display:none;"> <a class="close" href="javascript:;"></a>
				<div name="notification_content"></div>
			</div>
			<div id="tab1" class="tab-content default-tab" style="display: block;">
				<form method="post" action="admin/user/group_edit_process/group_id-<?php echo $this->group['group_id']; ?>" id="_save_form">
					<fieldset>
					<p>
						<label>是否超级管理员：</label>
						<input type="radio" checked="true" value="1" name="is_administortar"<?php if($this->group_pms['is_administortar']){ ?> checked="true"<?php } ?>>是
						<input type="radio" value="0" name="is_administortar"<?php if(!$this->group_pms['is_administortar']){ ?> checked="true"<?php } ?>>否
					</p>
					<p>
						<label>是否前台管理员：</label>
						<input type="radio" checked="true" value="1" name="is_moderator"<?php if($this->group_pms['is_moderator']){ ?> checked="true"<?php } ?>>是
						<input type="radio" value="0" name="is_moderator"<?php if(!$this->group_pms['is_moderator']){ ?> checked="true"<?php } ?>>否
					</p>
					<p>
						<label>允许发布问题：</label>
						<input type="radio" checked="true" value="1" name="publish_question"<?php if($this->group_pms['publish_question']){ ?> checked="true"<?php } ?>>是
						<input type="radio" value="0" name="publish_question"<?php if(!$this->group_pms['publish_question']){ ?> checked="true"<?php } ?>>否
					</p>
					<p>
						<label>允许修改所有问题：</label>
						<input type="radio" checked="true" value="1" name="edit_question"<?php if($this->group_pms['edit_question'] || empty($this->group_pms['edit_question'])){ ?> checked="true"<?php } ?>>是
						<input type="radio" value="0" name="edit_question"<?php if(!$this->group_pms['edit_question']){ ?> checked="true"<?php } ?>>否
					</p>
					<p>
						<label>允许修改所有话题：</label>
						<input type="radio" checked="true" value="1" name="edit_topic"<?php if($this->group_pms['edit_topic']){ ?> checked="true"<?php } ?>>是
						<input type="radio" value="0" name="edit_topic"<?php if(!$this->group_pms['edit_topic'] || empty($this->group_pms['edit_topic'])){ ?> checked="true"<?php } ?>>否
					</p>
					<p>
						<label>允许上传附件：</label>
						<input type="radio" checked="true" value="1" name="upload_attach"<?php if($this->group_pms['upload_attach'] || empty($this->group_pms['upload_attach'])){ ?> checked="true"<?php } ?>>是
						<input type="radio" value="0" name="upload_attach"<?php if(!$this->group_pms['upload_attach']){ ?> checked="true"<?php } ?>>否
					</p>
					<p>
						<label>允许发布内容出现站外链接：</label>
						<input type="radio" checked="true" value="1" name="publish_url"<?php if(!$this->group_pms['publish_url']){ ?> checked="true"<?php } ?>>是
						<input type="radio" value="0" name="publish_url"<?php if(!$this->group_pms['publish_url'] || empty($this->group_pms['publish_url'])){ ?> checked="true"<?php } ?>>否
					</p>
					<p>
						<label>发文验证码限制：</label>
						<input type="radio" checked="true" value="1" name="human_valid"<?php if(!$this->group_pms['human_valid']){ ?> checked="true"<?php } ?>>是
						<input type="radio" value="0" name="human_valid"<?php if(!$this->group_pms['human_valid'] || empty($this->group_pms['human_valid'])){ ?> checked="true"<?php } ?>>否
					</p>
					<p rel="human_valid">
						一小时内发布问题超过&nbsp;<input type="text" name="question_valid_hour" class="text-input small-int" style="width:30px;text-align:right;" value="<?php echo intval($this->group_pms['question_valid_hour']); ?>">&nbsp;个时需要验证码&nbsp;(设置0为不限制)
					</p>
					<p rel="human_valid">
						一小时内发表回复超过&nbsp;<input type="text" name="answer_valid_hour" class="text-input small-int" style="width:30px;text-align:right;" value="<?php echo intval($this->group_pms['answer_valid_hour']); ?>">&nbsp;个时需要验证码&nbsp;(设置0为不限制)
					</p>
					<p>
						<input type="button" value="  保  存  " onclick="ajax_post($('#_save_form'), _form_process);" class="button">
					</p>
					</fieldset>
					<div class="clear"></div>
				</form>
			</div>
		</div>
		<div class="clear"></div>
		<div id="notf_tip" style="display:none;" class="notification png_bg"> <a href="javascript:;" class="close"><img src="<?php echo G_STATIC_URL;?>/admin/images/icons/cross_grey_small.png" alt="关闭" /></a>
			<div id="notf_cont"></div>
		</div>
	</div>
</div>

<script type="text/javascript" src="<?php echo G_STATIC_URL; ?>/admin/js/group.js"></script>

<?php TPL::output('admin/admin_footer.tpl.htm'); ?>
